package com.coldchain.auth.module.client.service;

import java.util.List;

/**
 * @ClassName dsa

 * @Author fangliai
 * @Date 2018/8/29 9:19
 * @Vesion 1
**/
public interface IAuthClientService {
 /**
  * 获取服务鉴权token
  * @param clientId
  * @param secret
  * @return
  * @throws Exception
  */
 public String apply(String clientId, String secret) throws Exception;

 /**
  * 获取授权的客户端列表
  * @param serviceId
  * @param secret
  * @return
  */
 public List<String> getAllowedClient(String serviceId, String secret) throws Exception;

 /**
  * 获取服务授权的客户端列表
  * @param serviceId
  * @return
  */
 public List<String> getAllowedClient(String serviceId) throws Exception;

 /**
  * 校验合法性
  * @param clientId
  * @param secret
  * @throws Exception
  */
 public void validate(String clientId, String secret) throws Exception;
}